<?php
		session_start();
	error_reporting(E_ALL | E_STRICT);
	ini_set('display errors', 1);
	date_default_timezone_set('Europe/London');
	set_include_path('./lib'.PATH_SEPARATOR.'applications/models');	
	require_once "config.php";	
	require_once "header.php";
	
	include "./applications/default/components/loadMainContent.php";
	
	
?>
			<div id="cB1">
			<br/>
			<table width="400" border="0" cellspacing="0">
				<tr>
					<td class="DLHeadRedL" width="17" height="34">&nbsp;
						
					</td>
					<td  class="DLHeadRed" height="34" valign="top">
						<?php echo $typename;?>
					</td>
					<td class="DLHeadRedR" width="17" height="34">&nbsp;
						
					</td>
				</tr>
			</table>
			<br/>
            
            <?php
				if(!isset($_GET['view'])){
			?>
				<div class="DLTypeintro">
				<!--SlideShow -->
				<?php
				
					$slideCount=14;
					$slide_stringHTML='<div style="background:#000;" width="100%"><div id="myGallery">';
					
					for( ;$slideCount>0; $slideCount--){
						$slide_stringHTML.='<div class="imageElement">';
						$slide_stringHTML.='<h3>Item '.$slideCount.' Title</h3>';
						$slide_stringHTML.='<p>Item '.$slideCount.' Description</p>';
						$slide_stringHTML.='<a href="#" title="open image" class="open"></a>';
						$slide_stringHTML.='<img src="./applications/resources/slide/'.$slideCount.'.jpg" class="full" />';
						$slide_stringHTML.='<img src="./applications/resources/slide/'.$slideCount.'_thumbs.jpg" class="thumbnail" />';
						$slide_stringHTML.='</div>';
					}
					$slide_stringHTML.='</div></div><br/>';
					
					echo $slide_stringHTML;
				
				?>
				<!--End SlideShow-->
				<?php  
					if(isset($itemType))
						echo '<font size="2">'.$itemType['description'].'</font>'; 
				?>
				</div>
				<?php
				}
				?>
                
			<div class="DLBodyLight" width="100%">
            
			<?php echo $maincontent;?>
			</div>
			<div style="background:#000">
			</div>
			
            </div> <!-- end cB1-->
<div id="dScript"><script type="text/javascript">
			function startGallery() {
				var myGallery = new gallery($('myGallery'), {
					timed: true,
					delay: 5000,
					defaultTransition: "fadeslideleft"
				});
			}
			window.addEvent('domready', startGallery);
</script></div>